home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14613 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  913 b 

  1. Path: news.production.compuserve.com!news
  2. From: Peter Hammond <100443.2074@CompuServe.COM>
  3. Newsgroups: comp.lang.c++
  4. Subject: osteam & streambuf inheritance
  5. Date: 1 Apr 1996 10:39:45 GMT
  6. Organization: Cygnus Intruments Ltd
  7. Message-ID: <4jobph$h0e$4@mhafc.production.compuserve.com>
  8.  
  9. Sorry my last post was truncated. I was about to give an example 
  10. but when I typed return the message got sent for some reason.
  11. Anyway, I have an ostream derivative called gs which has a 
  12. streambuf derivative caleed gss as its *bp. If I call 
  13. gs.rdbuf()->overflow() it outputs more or less right, but when I 
  14. do gs << "stuff" << flush, or gs.flush(), nothing happens. Does 
  15. anyone know what is going on? 
  16. Thanks for any replies, 
  17. Peter.
  18.  
  19. -- 
  20. Cygnus Instruments Ltd        Ultrasonic NDT Equipment
  21.    30 Prince of Wales Rd, Dorchester, Dorset DT1 1PW            
  22.    England    
  23. Tel +44 (0)1305 265533        Fax +44 (0)1305 269960
  24.